package main

import (
	_ "SMBProject/routers"
	"fmt"

	beego "github.com/beego/beego/v2/server/web"
)

func main() {
	if beego.BConfig.RunMode == "dev" {
		beego.BConfig.WebConfig.DirectoryIndex = true
		beego.BConfig.WebConfig.StaticDir["/swagger"] = "swagger"
	}

	tree := beego.PrintTree()
	methods := tree["Data"].(beego.M)
	for k, v := range methods {
		fmt.Printf("%s => %v\n", k, v)
	}
	beego.Run()
}
